package com.social.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.social.pojo.Complaint;
import com.social.pojo.Menu;
import org.apache.ibatis.annotations.*;

import java.util.List;


/**
 * @className: MenuDao
 * @description: TODO 类描述
 * @author: XiaoXu
 * @date: 2022/10/30 16:21
 **/
public interface MenuDao extends BaseMapper<Menu> {


    @Select("select * from menu where path = #{path}")
    @Results({
            @Result(property = "id",column = "id",javaType = Long.class),
            @Result(property = "path",column = "path",javaType = String.class),
            @Result(property = "father",column = "father",javaType = Long.class),
            @Result(property = "values",column = "values",javaType = String.class)
    })
    List<Menu> selectByPath(@Param("path") String path);
}
